package com.iweb.day12;

/**
 * @author WuYongheng
 * @date 2021/12/5
 * @description 演示线程休眠
 */
public class SleepDemo {
    public static void main(String[] args) {
        for (int i = 5; i > 0; i--) {
            System.out.println(i + "秒");
            try {
                Thread.sleep(1000); // 睡眠1秒
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
        System.out.println("fire......");
    }
}